import React, { Component } from 'react'
import "./search.scss"
// withRouter高阶组件
import {withRouter} from "react-router-dom"
class Search extends Component {
    handleClick=(params) => {
        this.props.history.push("/searchCenter")
    }
    render() {
        return (
            <div>
                <div className="search-con" onClick={this.handleClick}>搜索</div>
            </div>
        )
    }
}
export default withRouter(Search)
